package com.liyunc.demo.bundle.security.service;

import com.liyunc.demo.comp.auth.AuthenticatedUser;
import com.liyunc.demo.comp.auth.AuthenticationDataLoader;

import java.util.Collections;


/**
 * @author liyuncong
 * @version 1.0
 * @file AuthenticationDataLoaderService
 * @brief AuthenticationDataLoaderService
 * @details AuthenticationDataLoaderService
 * @date 2022-03-31
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-03-31                  liyuncong          Created
 */
public class AuthenticationDataLoaderService implements AuthenticationDataLoader {
    @Override
    public Iterable<String> getRoles(AuthenticatedUser<?> user) {
        return Collections.singletonList("*");
    }
}
